package com.lmz.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lmz.common.utils.PageUtils;
import com.lmz.product.VO.AttrRespVo;
import com.lmz.product.VO.AttrVo;
import com.lmz.product.VO.attrGroupRelationVo;
import com.lmz.product.entity.AttrEntity;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author lmz
 * @email ${email}
 * @date 2022-04-17 16:09:59
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long cactelogId, String type);

    AttrRespVo getAttrInfo(Long attrId);


    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteRelation(attrGroupRelationVo[] vos);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    List<Long> selectSearchAttrIds(List<Long> attrIds); //在指定的属性集合中找到检索属性
}